import * as Request from '@/utils/Request'

/**
 * 公共接口
 */
export default {
    // 地区树形接口
    areaGetTree: (params) => Request.get1('/admin_server/region/getTree', params),
    getProvince: (params) => Request.get1('/admin_server/region/getProvince', params),
    getCity: (params) => Request.get1('/admin_server/region/getCity', params),
    getArea: (params) => Request.get1('/admin_server/region/getArea', params),
    // 获取当前ip信息
    queryByIp: (params) => Request.get1('/admin_server/wxmap/queryByIp', params),
    // 根据地址获取信息
    queryByAddress: (params) => Request.get1('/admin_server/wxmap/queryByAddress', params),
    // 根据经纬度获取信息
    queryByLngLat: (params) => Request.get1('/admin_server/wxmap/query', params),
    // rsa传输密钥获取接口
    rsaPublicKey: (params) => Request.get1('/admin_server/oauth/rsaPublicKey', params),

    // 发送手机验证码
    sendPhone: (params) => Request.get1('/admin_server/oauth/send/phone', params),
    // 重置密码
    phoneReset: (params) => Request.post2('/admin_server/oauth/phoneReset', params),
}